{% extends "sqladmin/edit.html" %}
{% block tail %}
<script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/ckeditor.js"></script>
<style>
    .ck-editor__editable {
    min-height: 400px !important;
}
</style>
<script>
    ClassicEditor
        .create(document.querySelector('.rich-text'), {
            height: 500,
            ui: {
                viewportTopOffset: {
                    height: 500
                }
            },
            toolbar: {
                items: [
                    'heading',
                    '|',
                    'bold',
                    'italic',
                    'link',
                    'bulletedList',
                    'numberedList',
                    '|',
                    'outdent',
                    'indent',
                    '|',
                    'blockQuote',
                    'insertTable'

                ]
            }
        })
        .catch(error => {
            console.error(error);
        });
</script>
{% endblock %}
